From: Simon McVittie Date: Thu, 27 Oct 2016 11:32:10 +0000 (+0100) Subject: ostree_repo_pull_with_options: clear dirs array X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~44^2~16 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1fc2a1202e595a8eb3b2ec8ab2d78c89a1908166;p=ostree.git ostree_repo_pull_with_options: clear dirs array Leak found with valgrind memcheck. Signed-off-by: Simon McVittie Closes: #556 Approved by: cgwalters --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index 9d361d5f..359660bb 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -3123,6 +3123,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, g_clear_pointer (&pull_data->requested_content, (GDestroyNotify) g_hash_table_unref); g_clear_pointer (&pull_data->requested_metadata, (GDestroyNotify) g_hash_table_unref); g_clear_pointer (&pull_data->idle_src, (GDestroyNotify) g_source_destroy); + g_clear_pointer (&pull_data->dirs, (GDestroyNotify) g_ptr_array_unref); g_clear_pointer (&remote_config, (GDestroyNotify) g_key_file_unref); return ret; }